{template admin_improt}
<script>

function del(user_id){
	if(confirm("确认删除所有选中数据么？操作不可恢复")){
	window.location="admin.php?p=members&a=membersdel&id="+user_id;
	}//

}
function infos(user_id)
{
	
	$.post('admin.php?p=members&a=members_info&id='+user_id,{id:user_id},function (data) {alert(data);});
}



</script>

<div class="mainStyle">
	<div class="mainTitle">
		<span class="mainTitle_text">
	  		会员管理
		</span>
	</div>
	<div class="mainSearch">
		<form action="admin.php?p=members&a=search" method="post">
			<div class="mainTitle_btn">
			<span style="font-size:12px;">搜索方式：</span>
				<span>
					<select name="user_type">
						<option value="" selected>▼审核状态</option>
							<option value="2"  {if $user_type == "2"}selected{/if}>审核通过</option>
							<option value="1"  {if $user_type == "1"}selected{/if}>审核未通过</option>
					</select>
				</span>
				<span>
					<select name="is_pingbi">
						<option value="" selected>▼账号是否有效</option>
							<option value="2"  {if $is_pingbi == "2"}selected{/if}>无效</option>
							<option value="1"  {if $is_pingbi == "1"}selected{/if}>有效</option>
					</select>
				</span>
			</div>
			<div class="mainSearch_text">
						<input type='hidden' name='search' id='search' value='search' />
				<span><input type="text" name="title" style="width:200px;height:16px;padding:3px;border:1px solid #bbbbbb;" value="$_REQUEST['title']"/></span>
				<span><input type="submit" value="搜索" /></span>
			</div>
		</form>
	
	</div>

	<div class="mainTitle_list">
		<span class="mainTitle_text00">会员昵称</span>
		<span class="mainTitle_text00">用户名</span>
		<span class="mainTitle_text00">真实姓名</span>
		<span class="mainTitle_text00">会员等级</span>
		<span class="mainTitle_text00">是否有效</span>
		<span class="mainTitle_text00">审核状态</span>
		<span class="mainTitle_text00">添加时间</span>
		<span class="mainTitle_text00">登陆来源</span>
		<span class="mainTitle_text00">是否推荐</span>
		<span class="mainTitle_text00">操 作</span>
	</div>
	<form id="f_form" name="f_form" action="" method="post">
	<!--{if $list}-->
		<!--{loop $list $nl}-->
		<div class="mainList">
			<span class="mainList_text0"><!--{$nl["nick_name"]}--></span>
			<span class="mainList_text0"><!--{$nl["user_name"]}--></span>
			<span class="mainList_text0"><!--{$nl["true_name"]}--></span>

			<span class="mainList_text0">{if $nl["user_leve"]==1}普通会员{elseif $nl["user_leve"]==2}商品会员{elseif $nl["user_leve"]==3}VIP会员{/if}</span>
			<span class="mainList_text0">{if $nl["is_pingbi"]==1}<span style="color:green;">有效</span>{elseif $nl["is_pingbi"]==2}<span style="color:red;">无效</span>{/if}</span>
			<span class="mainList_text0">{if $nl["user_type"] == 1}<span style="color:red;">未通过</span>{else}<span style="color:green;">通过</span>{/if}</span>
			<span class="mainList_text0"><!--{$nl["create_time"]}--></span>
			<span class="mainList_text0">{if $nl['ex_source']==''}主站注册{elseif $nl['ex_source']=='QQ'}QQ登陆{elseif $nl['ex_source']=='sina'}新浪登陆{/if}</span>
			<span class="mainList_text0">{if $nl["is_tuijian"]==0}<span style="color:red;">否</span>{elseif  $nl["is_tuijian"]==1}<span style="color:green;">是</span>{/if}</span>
			<span class="mainList_text0"><a href="admin.php?p=members&a=members_info&id={$nl['id']}">详情</a></span>
			<span class="mainList_text0" ><a href="javascript:del({$nl['id']}) "><img class='images_border' src='./style/images/wrong.gif'/></a></span></span>
			</span>
		</div>


		<!--{/loop}-->

			<div style="width:100%;text-align:right;"><div class="pages" ><!--{if $pagecount}--><!--{loop $pagecount $pageLinkText}-->{$pageLinkText}<!--{/loop}--><!--{/if}--></div></div>
		<!--{else}-->
		<div style="width:100%;text-align:center;font-size:12px;padding:40px 0px;">暂无内容!</div>
	<!--{/if}-->
	</form>
</div>
<div id='infos'></div>
{template admin_bottom}
